<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">

		<script src="http://apps.bdimg.com/libs/jquery/1.11.1/jquery.min.js"></script>
		<script src="http://apps.bdimg.com/libs/layer/2.1/layer.js"></script>
		
	</head>
	<body>  
		<div class="page-header">
  			<p class="text-center">Visit Record   <a href="visits.html">返回</a></p>
		</div>
    <div ng-app="Notes" ng-controller="NotesCtrl" style="margin-top:20px ;"> 
   
        <table class="table table-bordered"style="margin:auto; width: 600px;">
<!--		<th>网站编号</th>-->
		<th>IP地址</th>
		<th>访问时间</th>
		<th>流量入口</th>
		<th>地址</th>
		<tr ng-repeat="gee in bee.data">
<!--		<td>{{ gee.softId}}</td>-->
		<td>{{ gee.ip}}</td>
		<td>{{ gee.time}}</td>
		<td>{{ gee.come}}</td>
		<td>{{ gee.address}}</td>
		</tr>
		</table>
    </div> 
  <!--   //http://apps.bdimg.com/libs/angular.js/1.5.0-beta.0/angular.js-->

<script src="http://cdn.static.runoob.com/libs/angular.js/1.4.6/angular.min.js"></script>
<script src="https://cdn.bootcss.com/angular-resource/1.2.28/angular-resource.min.js"></script>
<script type="text/javascript"> 

function GetQueryString(name)
{
     var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
     var r = window.location.search.substr(1).match(reg);
     if(r!=null)return  unescape(r[2]); return null;
}
var strl ="http://www.haol.site/link";
if(GetQueryString("id") == null){
	strl +="/record/see";
}else{
	strl +="/visit/"+GetQueryString("id");
}


var Demo = angular.module('Notes', ['ngResource']); 

Demo.factory('Notes', ['$resource', function($resource) {
    return $resource(strl,{},{
    	query: {method:'GET', params:{}, isArray:true}
    });
}]);


Demo.controller('NotesCtrl', ['$scope', 'Notes', function($scope, Notes) {
  
   $scope.bee =Notes.get();

}]);
  
</script>  
</body>  
</html>
